#include <stdio.h>

union Data {
    int i;
    char str[4];
};

int main() {
    union Data data;
    printf("sizeof(data) = %d\n", sizeof(data));
    data.i = 0x11121314;
    printf("data.i: %0x\n", data.i);

    printf("str[0] = %0x\n", data.str[0]);
    printf("str[1] = %0x\n", data.str[1]);
    printf("str[2] = %0x\n", data.str[2]);
    printf("str[3] = %0x\n", data.str[3]);

    data.str[0] = 0x20;
    printf("data.i: %0x\n", data.i);

    return 0;
}